<!DOCTYPE html>
<body>
  <script src="../../../fullscreen/full-screen-test.js"></script>
  <div id="extra" style="width: 100px; height: 1000px"></div>
  <video id="video"></video>
  <script>
    if (window.testRunner)
      testRunner.dumpAsText();

    window.scrollTo(0, 1000);
    waitForEventOnceAndEnd(document, 'fullscreenchange', function(){
      testRunner.setCustomTextOutput(internals.layerTreeAsText(document));
    });

    runWithKeyDown(function(){
      video.requestFullscreen();
    });
  </script>
</body>
